﻿#include<QApplication>
#include<QTranslator>
#include"XQAppInfo.h"
#include"StashManageController.h"
//windows平台去掉黑窗口
#ifndef _DEBUG
#pragma comment(linker,"/subSystem:windows /entry:mainCRTStartup")
#endif // !_DEBUG
#include<QSslSocket>
#include<QBuffer>
#include<QDebug>
int main(int argc, char *argv[])
{
    qDebug() << "输出当前QT支持的openSSL版本: " << QSslSocket::sslLibraryBuildVersionString();
    qDebug() << "OpenSSL支持情况: " <<QSslSocket::supportsSsl();
    qDebug() << "OpenSSL运行时SSL库版本: " << QSslSocket::sslLibraryBuildVersionString();
 
//将此代码置于QT中运行即可诊断是否缺少OPenSSL库
    QApplication a(argc, argv);
    // 获取传递的参数列表
    QStringList args = QApplication::arguments();
    QApplication::setOrganizationName("xinyue");
    QApplication::setApplicationName("StashManage");
    QCoreApplication::setApplicationVersion("1.0.0");
    StashManageController manage;
    //httpServer();
    //QRCodeTest();
    //ftpTest();

   /* QBuffer buff;
    QZipWriter gzip(&buff);
    gzip.setCompressionPolicy(QZipWriter::AlwaysCompress);
    gzip.addFile("",QByteArray("123456789")); 
    gzip.close();
    qDebug() << QString(buff.buffer())<<buff.size();

    QZipReader uzip(&buff);
    qDebug() << uzip.count();
    qDebug() << QString(uzip.fileData("")) << buff.size();*/
    //QZipReader zipReader(" ");
    // 
    //a.quit();
    return a.exec();
}
